/*
 * PaymentBO.java
 *
 * Created on February 13, 2007
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package finalintex2web;
import java.util.*;

/**
 * Business object for payments
 * @author craig marshall
 */
public class PaymentBO {
    
    private String id = null, type = null;
    private double amount = 0, change = 0;
    private TransactionBO transaction = null;
    private boolean indb = false , dirty = false;
   
    
    
    
    /** Creates a new instance of PaymentBO */
    PaymentBO(String id){

        this.setId(id);
    }

    /**
     * 
     * @return 
     */
    public String getId() {
        return id;
    }

    /**
     * 
     * @param id 
     */
    public void setId(String id) {
        this.id = id;
        this.setDirty(true);
    }

    /**
     * 
     * @return 
     */
    public String getType() {
        return type;
    }

    /**
     * 
     * @param type 
     */
    public void setType(String type) {
        this.type = type;
        this.setDirty(true);
    }

    /**
     * 
     * @return 
     */
    public double getAmount() {
        return amount;
        
    }

    /**
     * 
     * @param amount 
     */
    public void setAmount(double amount) {
        this.amount = amount;
        this.setDirty(true);
    }

    /**
     * 
     * @return 
     */
    public double getChange() {
        return change;
    }

    /**
     * 
     * @param change 
     */
    public void setChange(double change) {
        this.change = change;
        this.setDirty(true);
    }

    /**
     * 
     * @return 
     */
    public boolean isIndb() {
        return indb;
    }

    /**
     * 
     * @param indb 
     */
    public void setIndb(boolean indb) {
        this.indb = indb;
    }

    /**
     * 
     * @return 
     */
    public boolean isDirty() {
        return dirty;
    }

    /**
     * 
     * @param dirty 
     */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

    /**
     * 
     * @return 
     */
    public TransactionBO getTransaction() {
        return transaction;
    }

    /**
     * 
     * @param transaction 
     */
    public void setTransaction(TransactionBO transaction) {
        this.transaction = transaction;
    }
        
    }
